# Maintainer: Jiachen YANG <farseerfc@gmail.com>
# AUR Maintainer: Timofey Titovets <nefelim4ag@gmail.com>

pkgname=python-btrfs
pkgver=13
pkgrel=4
pkgdesc="Python Btrfs module, with useful scripts to inspect btrfs internals"
arch=('any')
url="https://github.com/knorrie/python-btrfs"
license=('GPL2')
depends=('python')
makedepends=('git')
source=("$pkgname"::"git+https://github.com/knorrie/python-btrfs.git#tag=v${pkgver}")
sha256sums=('SKIP')

package() {
    cd "$srcdir/${pkgname}/"
    python ./setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
    cd bin
    install -Dm755 btrfs-* -t "$pkgdir/usr/bin/"
}
